package com.cloud.eurekahystrixconsumer.service;

import com.cloud.eurekahystrixconsumer.service.impl.ProviderServiceFallback;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.GetMapping;

/**
 * @author kangwen
 */
@Service
@FeignClient(value = "EUREKA-HYSTRIX-PROVIDER", fallbackFactory = ProviderServiceFallback.class, path = "/provider")
public interface ProviderService {

	/**
	 * /provider/hystrix
	 *
	 * @return
	 */
	@GetMapping("/hystrix")
	String hystrix();

	@GetMapping("/hello")
	String hello();

}
